textview: Fix comparison thinko
authorBenjamin Otte <otte@redhat.com>
Sun, 31 Mar 2019 18:04:02 +0000 (20:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 31 Mar 2019 18:22:05 +0000 (20:22 +0200)
Apparently, we have no test that checks for actually drawing text, so
the thinko that caused all text to disappear in
4b07d2815375856823532b2238d87455c3be2f7c went unnoticed.

gtk/gtktextlayout.c

index 7947eadcf803dfcdf7b7dd6aea28ed31ee00168d..2ebddbbda64668dca785dc2a36fb8ff919ee3a5f 100644 (file)
@@ -723,7 +723,7 @@ gtk_text_layout_get_lines (GtkTextLayout *layout,
 
   g_return_val_if_fail (GTK_IS_TEXT_LAYOUT (layout), NULL);
 
-  if (top_y <= bottom_y)
+  if (top_y >= bottom_y)
     return NULL;
 
   retval = NULL;